//
//  EJSGoodsModel.h
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/12/21.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import "JsonBaseObject.h"
#import "EJSEvaluateModel.h"

@interface EJSGoodsModel : JsonBaseObject


CopyStringProperty spuId;
CopyStringProperty spuName;
CopyStringProperty cover;
CopyStringProperty shopId;
CopyStringProperty video;
CopyStringProperty sn;
CopyStringProperty price;
CopyStringProperty originPrice;
CopyStringProperty stock;
CopyStringProperty content;
CopyStringProperty status;
CopyStringProperty statusText;
CopyStringProperty unit;
CopyStringProperty minInCart;//每次加入购物车的数量
CopyStringProperty minToBuy;//最小购买数量
CopyStringProperty packNum;//最小购买数量
CopyStringProperty boxNum;//最小购买数量

CopyStringProperty hasDefaultSku;//是否有默认的规格
    //自定义
CopyStringProperty contentHeight;
StrongProperty NSNumber *addCartNum;
StrongProperty NSArray *pics;
StrongProperty NSArray *skus;
StrongProperty NSArray *specs;
StrongProperty NSArray *labels;
StrongProperty NSArray *coupon;
StrongProperty EJSEvaluateListModel *comments;


@end

@interface EJSGoodsSkuModel: JsonBaseObject

CopyStringProperty sku_id;
CopyStringProperty spu_id;
CopyStringProperty shop_id;
CopyStringProperty sku_sn;
CopyStringProperty default_flag;

CopyStringProperty skuId;
CopyStringProperty spuId;
CopyStringProperty skuSn;
CopyStringProperty shopId;
CopyStringProperty status;
CopyStringProperty stock;
CopyStringProperty specInfo;
CopyStringProperty price;
CopyStringProperty specMode;
CopyStringProperty defaultFlag;

//自定义  选择数量
@property (assign, nonatomic) NSInteger skuSelectCount;
//规格组合id的数组
@property (strong, nonatomic) NSArray *specIds;

@end

@interface EJSGoodsSpecModel: JsonBaseObject

CopyStringProperty specId;
CopyStringProperty specName;
StrongProperty NSArray *specs;

@end

@interface EJSSpecModel: JsonBaseObject

CopyStringProperty mode;
CopyStringProperty value;

@property (assign, nonatomic) NSInteger specSelectStatus;//0 可选 1已选 -1不可选

@end

@interface EJSLabelModel : JsonBaseObject

CopyStringProperty labelId;
CopyStringProperty labelName;

@end

@interface EJSRebateModel : JsonBaseObject

CopyStringProperty levelId;
CopyStringProperty levelName;
CopyStringProperty rebate;

@end

@interface EJSGoodsListModel : JsonBaseObject

CopyStringProperty totalPages;
CopyStringProperty pageLimit;
CopyStringProperty page;
StrongProperty NSArray *list;

@end


